﻿@using ECG.WebUI.CustomHelpers
@model IEnumerable<ECG.Common.ViewBannerClientDto>
@{
    var bannerFilter = Model.Where(m => m.PageKey == "TRANG-CHU" & m.PositionKey == "ON-HEADER");
}
@if (bannerFilter.Any())
{
    <div class="bnoh-contaier">
        <div class="bnoh-wrapper">
            @foreach (var item in bannerFilter.OrderBy(m => m.BannerImageOrder))
            {
                <div class="fl-l">
                    <a href="@string.Format("{0}", string.IsNullOrEmpty(item.Url) ? "javascript:void(0);" : item.Url)" title="@item.Title">
                        <img src="@item.ImagePath.ImagePathThumbDefault()" alt="@item.Description" width="@item.Width" height="@item.Height"/>
                    </a>
                </div>
            }
            <div class="clr"></div>
        </div>
    </div>
    <!-- END bnoh-wrapper -->
}
